import config from '@/configs/index.js'

const tabBar1 = config.IMAGES_URL_YQGJ + "tabBar/tabBar1/"
const tabBar_fangke = config.IMAGES_URL_YQGJ + "tabBar/tabBar_fangke/"
const tabBar_meeting = config.IMAGES_URL_YQGJ + "tabBar/tabBar_meeting/"
const tabBar_water = config.IMAGES_URL_YQGJ + "tabBar/tabBar_water/"
const tabBar_repair = config.IMAGES_URL_YQGJ + "tabBar/tabBar_repair/"

// 普通tab
const tabBar1Data = [{
		"pagePath": "pages/index",
		"text": "首页",
		"iconPath": tabBar1 + "index2.png",
		"selectedIconPath": tabBar1 + "index1.png",
		"name": "home",
		"inactiveColor": "#646566",
		"activeColor": "#1989fa",
		"tabBarType": 1
	}, {
		"pagePath": "pages/chat/chat",
		"text": "在线客服",
		"iconPath": tabBar1 + "index4.png",
		"selectedIconPath": tabBar1 + "index3.png",
		"name": "chat",
		"inactiveColor": "#646566",
		"activeColor": "#1989fa",
		"tabBarType": 1
	},
	{
		"pagePath": "pages/personal",
		"text": "我的",
		"iconPath": tabBar1 + "index8.png",
		"selectedIconPath": tabBar1 + "index7.png",
		"name": "personal",
		"inactiveColor": "#646566",
		"activeColor": "#1989fa",
		"tabBarType": 1
	}
]

// 访客tab
const tabBar_fangkeData = [{
		"pagePath": "pages/index",
		"text": "园区管家",
		"iconPath": tabBar1 + "index2.png",
		"selectedIconPath": tabBar1 + "index1.png",
		"name": "home",
		"inactiveColor": "#646566",
		"activeColor": "#1989fa",
		"tabBarType": 1
	}, {
		"pagePath": "pages/visitor/index",
		"text": "申请记录",
		"iconPath": tabBar_fangke + "plan.png",
		"selectedIconPath": tabBar_fangke + "plan2.png",
		"name": "visitorHome",
		"inactiveColor": "#646566",
		"activeColor": "#41ae68",
		"tabBarType": 2
	},
	{
		"pagePath": "pages/visitor/personal",
		"text": "个人中心",
		"iconPath": tabBar_fangke + "personal.png",
		"selectedIconPath": tabBar_fangke + "personal2.png",
		"name": "visitorPersonal",
		"inactiveColor": "#646566",
		"activeColor": "#41ae68",
		"tabBarType": 2
	}
]

// 会议tab
const tabBar_meetIngData = [{
		"pagePath": "pages/index",
		"text": "园区管家",
		"iconPath": tabBar1 + "index2.png",
		"selectedIconPath": tabBar1 + "index1.png",
		"name": "home",
		"inactiveColor": "#646566",
		"activeColor": "#1989fa",
		"tabBarType": 1
	},
	{
		"pagePath": "sub-meeting/index",
		"text": "会议管理",
		"iconPath": tabBar_meeting + "home.png",
		"selectedIconPath": tabBar_meeting + "home_cur.png",
		"name": "meetingHome",
		"inactiveColor": "#646566",
		"activeColor": "#1989fa",
		"tabBarType": 3
	},
	{
		"pagePath": "sub-meeting/enroll_index",
		"text": "会议室",
		"iconPath": tabBar_meeting + "enroll.png",
		"selectedIconPath": tabBar_meeting + "enroll_cur.png",
		"name": "meetingEnroll",
		"inactiveColor": "#646566",
		"activeColor": "#1989fa",
		"tabBarType": 3
	},{
		"pagePath": "sub-meeting/enroll_calendar",
		"text": "会议日历",
		"iconPath": tabBar_meeting + "day.png",
		"selectedIconPath": tabBar_meeting + "day_cur.png",
		"name": "meetingCalendar",
		"inactiveColor": "#646566",
		"activeColor": "#1989fa",
		"tabBarType": 3
	}
]

// 送水服务tab
const tabBar_waterData = [{
		"pagePath": "pages/index",
		"text": "园区管家",
		"iconPath": tabBar1 + "index2.png",
		"selectedIconPath": tabBar1 + "index1.png",
		"name": "home",
		"inactiveColor": "#646566",
		"activeColor": "#1989fa",
		"tabBarType": 1
	},{
		"pagePath": "sub-water/water",
		"text": "送水服务",
		"iconPath": tabBar_water + "water.png",
		"selectedIconPath": tabBar_water + "water_cur.png",
		"name": "waterHome",
		"inactiveColor": "#646566",
		"activeColor": "#1989fa",
		"tabBarType": 4
	},{
		"pagePath": "sub-water/cart",
		"text": "购物车",
		"iconPath": tabBar_water + "cart.png",
		"selectedIconPath": tabBar_water + "cart_cur.png",
		"name": "waterCart",
		"inactiveColor": "#646566",
		"activeColor": "#1989fa",
		"tabBarType": 4
	},{
		"pagePath": "sub-water/user",
		"text": "我的",
		"iconPath": tabBar_water + "user.png",
		"selectedIconPath": tabBar_water + "user_cur.png",
		"name": "waterUser",
		"inactiveColor": "#646566",
		"activeColor": "#1989fa",
		"tabBarType": 4
	}
]

// 报事报修tab
const tabBar_repairData = [{
		"pagePath": "pages/index",
		"text": "园区管家",
		"iconPath": tabBar1 + "index2.png",
		"selectedIconPath": tabBar1 + "index1.png",
		"name": "home",
		"inactiveColor": "#646566",
		"activeColor": "#1989fa",
		"tabBarType": 1
	},{
		"pagePath": "sub-repair/index",
		"text": "报事报修",
		"iconPath": tabBar_repair + "home.png",
		"selectedIconPath": tabBar_repair + "home2.png",
		"name": "repairHome",
		"inactiveColor": "#646566",
		"activeColor": "#1989fa",
		"tabBarType": 5
	}
]


const userPages = {
	'1': tabBar1Data,
	'2': tabBar_fangkeData,
	'3': tabBar_meetIngData,
	'4': tabBar_waterData,
	'5': tabBar_repairData,
};

export default userPages